x86: don't unconditionally touch the hvm_domain union during domain construction
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 May 2015 11:25:12 +0000 (13:25 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 20 May 2015 11:25:12 +0000 (13:25 +0200)
commit74d0932448245cc4776d50811ceb80365623893c
tree6242394002d38afa93b8c8fac29266a8ebb7792e
parent0c3580814afe7458c4072f0e45714d38d59fa595
x86: don't unconditionally touch the hvm_domain union during domain construction

It may not be the appropriate half to touch.

Drop the superfluous mem_sharing_enabled assignment, and move the hap_enabled
assignment to a suitable conditional before it is actually needed.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain.c